.class public Lcom/adview/adapters/AdChinaAdapter;
.super Lcom/adview/adapters/AdViewAdapter;
.source "AdChinaAdapter.java"

# interfaces
.implements Lcom/adchina/android/ads/AdListener;


# direct methods
.method public constructor <init>(Lcom/adview/AdViewLayout;Lcom/adview/obj/Ration;)V
    .locals 0
    .parameter "adViewLayout"
    .parameter "ration"

    .prologue
    .line 18
    invoke-direct {p0, p1, p2}, Lcom/adview/adapters/AdViewAdapter;-><init>(Lcom/adview/AdViewLayout;Lcom/adview/obj/Ration;)V

    .line 20
    return-void
.end method


# virtual methods
.method public OnRecvSms(Lcom/adchina/android/ads/views/AdView;Ljava/lang/String;)Z
    .locals 1
    .parameter "adView"
    .parameter "promptText"

    .prologue
    .line 89
    const/4 v0, 0x1

    return v0
.end method

.method public handle()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 25
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v2

    sget-object v3, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v2, v3, :cond_0

    .line 26
    const-string v2, "AdView SDK v1.7.0"

    const-string v3, "Into AdChina"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 27
    :cond_0
    iget-object v2, p0, Lcom/adview/adapters/AdChinaAdapter;->adViewLayoutReference:Ljava/lang/ref/WeakReference;

    invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/adview/AdViewLayout;

    .line 28
    .local v0, adViewLayout:Lcom/adview/AdViewLayout;
    if-nez v0, :cond_1

    .line 38
    :goto_0
    return-void

    .line 33
    :cond_1
    invoke-static {p0}, Lcom/adchina/android/ads/AdEngine;->setAdListener(Lcom/adchina/android/ads/AdListener;)V

    .line 34
    const/4 v2, -0x1

    invoke-static {v2}, Lcom/adchina/android/ads/AdManager;->setRefershinterval(I)V

    .line 35
    new-instance v1, Lcom/adchina/android/ads/views/AdView;

    invoke-virtual {v0}, Lcom/adview/AdViewLayout;->getContext()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/adview/adapters/AdChinaAdapter;->ration:Lcom/adview/obj/Ration;

    iget-object v3, v3, Lcom/adview/obj/Ration;->key:Ljava/lang/String;

    const/4 v4, 0x1

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/adchina/android/ads/views/AdView;-><init>(Landroid/content/Context;Ljava/lang/String;ZZ)V

    .line 36
    .local v1, mAdView:Lcom/adchina/android/ads/views/AdView;
    invoke-virtual {v1, v5}, Lcom/adchina/android/ads/views/AdView;->setVisibility(I)V

    goto :goto_0
.end method

.method public onDisplayFullScreenAd()V
    .locals 0

    .prologue
    .line 122
    return-void
.end method

.method public onEndFullScreenLandpage()V
    .locals 0

    .prologue
    .line 76
    return-void
.end method

.method public onFailedToPlayVideoAd()V
    .locals 0

    .prologue
    .line 102
    return-void
.end method

.method public onFailedToReceiveAd(Lcom/adchina/android/ads/views/AdView;)V
    .locals 3
    .parameter "arg0"

    .prologue
    .line 41
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v1

    sget-object v2, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v1, v2, :cond_0

    .line 42
    const-string v1, "AdView SDK v1.7.0"

    const-string v2, "onFailedToReceiveAd"

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 44
    :cond_0
    const/4 v1, 0x0

    invoke-static {v1}, Lcom/adchina/android/ads/AdEngine;->setAdListener(Lcom/adchina/android/ads/AdListener;)V

    .line 46
    iget-object v1, p0, Lcom/adview/adapters/AdChinaAdapter;->adViewLayoutReference:Ljava/lang/ref/WeakReference;

    invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/adview/AdViewLayout;

    .line 47
    .local v0, adViewLayout:Lcom/adview/AdViewLayout;
    if-nez v0, :cond_1

    .line 52
    :goto_0
    return-void

    .line 50
    :cond_1
    iget-object v1, v0, Lcom/adview/AdViewLayout;->adViewManager:Lcom/adview/AdViewManager;

    invoke-virtual {v1}, Lcom/adview/AdViewManager;->resetRollover_pri()V

    .line 51
    invoke-virtual {v0}, Lcom/adview/AdViewLayout;->rotateThreadedPri()V

    goto :goto_0
.end method

.method public onFailedToReceiveFullScreenAd()V
    .locals 0

    .prologue
    .line 118
    return-void
.end method

.method public onFailedToReceiveVideoAd()V
    .locals 0

    .prologue
    .line 110
    return-void
.end method

.method public onFailedToRefreshAd(Lcom/adchina/android/ads/views/AdView;)V
    .locals 0
    .parameter "arg0"

    .prologue
    .line 94
    return-void
.end method

.method public onPlayVideoAd()V
    .locals 0

    .prologue
    .line 106
    return-void
.end method

.method public onReceiveAd(Lcom/adchina/android/ads/views/AdView;)V
    .locals 3
    .parameter "adView"

    .prologue
    .line 55
    invoke-static {}, Lcom/adview/AdViewTargeting;->getRunMode()Lcom/adview/AdViewTargeting$RunMode;

    move-result-object v1

    sget-object v2, Lcom/adview/AdViewTargeting$RunMode;->TEST:Lcom/adview/AdViewTargeting$RunMode;

    if-ne v1, v2, :cond_0

    .line 56
    const-string v1, "AdView SDK v1.7.0"

    const-string v2, "onReceiveAd"

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 58
    :cond_0
    const/4 v1, 0x0

    invoke-static {v1}, Lcom/adchina/android/ads/AdEngine;->setAdListener(Lcom/adchina/android/ads/AdListener;)V

    .line 60
    iget-object v1, p0, Lcom/adview/adapters/AdChinaAdapter;->adViewLayoutReference:Ljava/lang/ref/WeakReference;

    invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/adview/AdViewLayout;

    .line 61
    .local v0, adViewLayout:Lcom/adview/AdViewLayout;
    if-nez v0, :cond_1

    .line 68
    :goto_0
    return-void

    .line 65
    :cond_1
    iget-object v1, v0, Lcom/adview/AdViewLayout;->adViewManager:Lcom/adview/AdViewManager;

    invoke-virtual {v1}, Lcom/adview/AdViewManager;->resetRollover()V

    .line 66
    iget-object v1, v0, Lcom/adview/AdViewLayout;->handler:Landroid/os/Handler;

    new-instance v2, Lcom/adview/AdViewLayout$ViewAdRunnable;

    invoke-direct {v2, v0, p1}, Lcom/adview/AdViewLayout$ViewAdRunnable;-><init>(Lcom/adview/AdViewLayout;Landroid/view/ViewGroup;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 67
    invoke-virtual {v0}, Lcom/adview/AdViewLayout;->rotateThreadedDelayed()V

    goto :goto_0
.end method

.method public onReceiveFullScreenAd()V
    .locals 0

    .prologue
    .line 114
    return-void
.end method

.method public onReceiveVideoAd()V
    .locals 0

    .prologue
    .line 72
    return-void
.end method

.method public onRefreshAd(Lcom/adchina/android/ads/views/AdView;)V
    .locals 0
    .parameter "arg0"

    .prologue
    .line 98
    return-void
.end method

.method public onStartFullScreenLandPage()V
    .locals 0

    .prologue
    .line 80
    return-void
.end method
